Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Loki: Increase flush_op_timeout default from 10s to 10m #5768

Merged
merged 1 commit into from
Apr 5, 2022

Conversation

slim-bean
Copy link
Collaborator

What this PR does / why we need it:

Under normal operation the flush queue generally doesn't get too large and flush operations can completely fairly quickly. However, sometimes if the remote storage is slow, the remote storage is unavailable for a period, or when replaying a very large WAL it's possible to build a big enough flush queue that a flush operation needs more than 10s to complete.

Another more interesting question is, what should the upper bound of this operation really be? This is hard for me to answer, I think all operations should have a timeout so it seems like waiting forever here isn't ideal, but is 10m enough?

This is related to some discoveries in #5267

…ig WAL replay which can generate a lot of chunks very quickly.

Signed-off-by: Ed Welch <edward.welch@grafana.com>
@slim-bean slim-bean requested review from KMiller-Grafana and a team as code owners April 4, 2022 20:01
@slim-bean slim-bean added the backport release-2.5.x Tag a PR with this label to create a PR which cherry pics it into the release-2.5.x branch label Apr 4, 2022
@slim-bean slim-bean merged commit b136d0d into main Apr 5, 2022
@slim-bean slim-bean deleted the flush-op-timeout branch April 5, 2022 11:55
grafanabot pushed a commit that referenced this pull request Apr 5, 2022
…ig WAL replay which can generate a lot of chunks very quickly. (#5768)

Signed-off-by: Ed Welch <edward.welch@grafana.com>
(cherry picked from commit b136d0d)
slim-bean added a commit that referenced this pull request Apr 6, 2022
…ig WAL replay which can generate a lot of chunks very quickly. (#5768) (#5771)

Signed-off-by: Ed Welch <edward.welch@grafana.com>
(cherry picked from commit b136d0d)

Co-authored-by: Ed Welch <edward.welch@grafana.com>
splitice pushed a commit to X4BNet/loki that referenced this pull request May 21, 2022
…ig WAL replay which can generate a lot of chunks very quickly. (grafana#5768) (grafana#5771)

Signed-off-by: Ed Welch <edward.welch@grafana.com>
(cherry picked from commit b136d0d)

Co-authored-by: Ed Welch <edward.welch@grafana.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport release-2.5.x Tag a PR with this label to create a PR which cherry pics it into the release-2.5.x branch size/XS
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants